<#include "../head.ftl">
<div class="page_title">客户开发计划 &gt; 制定计划</div>
<div class="button_bar">
	<button class="common_button" onclick="help('');">帮助</button>
	<button class="common_button" onclick="to('${base}/plan/execute?referid=${refer.id}');">执行计划</button>
	<button class="common_button" onclick="window.history.go(-1)">返回</button>
</div>
<#include "content.ftl">
<table class="data_list_table" id="table1">
	<tr>
		<th width="150px">日期</th>
		<th height="31">计划项</th>
	</tr>
	<#list planList as plan>
	    <tr>
			<form action="${base}/plan/save" method="post">
                <input type="hidden" name="id" value="${plan.id}"/>
				<input type="hidden" name="refer.id" value="${plan.refer.id}"/>
				<td class="list_data_text" height="24">${plan.createtime?string("yyyy年MM月dd日")}</td>
				<td class="list_data_ltext" height="24"><input type="text" size="50" name="content" value="${plan.content}" />
                    <button class="common_button" onclick="document.forms[0].submit();">保存</button>
					<a class="common_button" href="${base}/plan/delete?id=${plan.id}">删除</a>
				</td>
            </form>
        </tr>
	</#list>

</table>
<form action="${base}/plan/save" method="post">
    <input type="hidden" name="refer.id" value="${refer.id}"/>
<div class="button_bar">
    <input class="common_button" type="submit" value="保存"/>
</div>
<table class="query_form_table" id="table2">
	<tr>
		<th>日期</th>
		<td><input type="date" size="50" name="createtime" value="" />
			<span class="red_star">*</span>
		</td>
		<th>计划项</th>
		<td>
            <input size="50" type="text" name="content" value="" /><span class="red_star">*</span>
		</td>
	</tr>
</table>
</form>
</body>
</html>